package com.gitee.wsl.common.svg.gradient

import com.gitee.wsl.common.svg.attributes.AttributeType
import com.gitee.wsl.common.svg.attributes.FloatAttributeProperty

class LinearGradient(validation: Boolean = false) :BaseGradient("linearGradient",validation) {
    /**
    * The X1 coordinate of the line.
    */
    var x1: Float? by FloatAttributeProperty(type = AttributeType.Length)

    /**
     * The Y1 coordinate of the line.
     */
    var y1: Float? by FloatAttributeProperty(type = AttributeType.Length)

    /**
     * The X2 coordinate of the line.
     */
    var x2:  Float? by FloatAttributeProperty(type = AttributeType.Length)

    /**
     * The Y2 coordinate of the line.
     */
    var y2:  Float? by FloatAttributeProperty(type = AttributeType.Length)
}